package com.mall4j.cloud.coupon.mapper;

import com.mall4j.cloud.coupon.model.CouponConfig;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CouponConfigMapper {

    void save(CouponConfig couponConfig);
    @Select("select * from coupon_config where id=#{id}")
    CouponConfig selectById(int id);
    @Select("select * from coupon_config")
    List<CouponConfig> list();
}
